package com.jeesite.modules.em;

import com.jeesite.modules.pt.entity.PtPush;
import lombok.Getter;

@Getter
public enum PushConten {

    SHOUYIDAOZHANG("收益到账提醒","您的设备收益已到账，请点击设备列表查看详","/pages/device/deviceList","智能盒子"),
    TASKBOHUI("任务驳回提醒","您的任务已驳回，请点击查看详情","/pages/task/taskinfo","悬赏任务"),
    TASKTONGGUO("任务通过提醒","您的任务已通过，请点击查看详情","/pages/task/taskinfo","悬赏任务"),
    TASKXIAJIA("任务下架提醒","您的任务被下架，请点击查看详情","/pages/task/taskinfo","悬赏任务"),
    TASKSHENSUBOHUI("申诉驳回提醒","您的任务的申诉被驳回，请点击查看详情","/pages/task/shensuInfo","悬赏任务"),
    TASKSHENSUtTONGGUO("申诉通过提醒","您的任务的申诉通过，请点击查看详情","/pages/task/shensuInfo","悬赏任务"),
    TASKDAISHENHE("任务待审核提醒","有一个任务已提交需要您的审核，请点击查看详情","/pages/task/taskinfo","悬赏任务"),
    DEVICETONLINE("设备在线提醒","您的设备已在线，请点击查看详情","/pages/device/deviceInfo","智能盒子"),
    DEVICETOFFLINE("设备离线提醒","您的设备已离线，请点击查看详情","/pages/device/deviceInfo","智能盒子"),
    PTTASKTONGGUO("任务通过平台审核","您的任务平台已通过审核，请点击查看详情","/pages/task/taskinfo","悬赏任务"),
    PTTASKBOHUI("平台驳回任务审核","您的任务平台已驳回审核，请点击查看详情","/pages/task/taskinfo","悬赏任务"),
    ;

    private String title;
    private String content;
    private String url;
    private String type;

    private PushConten(String title, String content, String url, String type) {
        this.title = title;
        this.content = content;
        this.url = url;
        this.type = type;
    }

    public static void copyToPush(PushConten pushConten, PtPush ptPush){
        ptPush.setTitle(pushConten.getTitle());
        ptPush.setContent(pushConten.getContent());
        ptPush.setUrl(pushConten.getUrl());
        ptPush.setType(pushConten.getType());
    }

}
